package jmine.tec.datadigester.positional.writer.factory;

import jmine.tec.datadigester.positional.meta.PositionalIntFieldMetadata;
import jmine.tec.datadigester.positional.writer.IntPositionalFieldWriter;
import jmine.tec.datadigester.positional.writer.PositionalFieldWriter;

/**
 * {@link PositionalWriterFactory} para writers de campos Int
 * 
 * @author israel.crisanto
 */
public class IntPositionalWriterFactory implements PositionalWriterFactory<PositionalIntFieldMetadata> {

    /**
     * {@inheritDoc}
     */
    public PositionalFieldWriter create(PositionalIntFieldMetadata meta) {
        return new IntPositionalFieldWriter(meta);
    }

    /**
     * {@inheritDoc}
     */
    public Class<PositionalIntFieldMetadata> getFieldMetadataType() {
        return PositionalIntFieldMetadata.class;
    }

}
